package com.sky.mapper;


import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {

    /**
     * 微信小程序登陆,根据openid查找是否已经有该用户
     * @param openid
     * @return
     */
    User wxLogin(String openid);

    /**
     * 微信小程序登陆,新增用户
     * @param user
     * @return
     */
    void saveUser(User user);
}
